import{_ as t}from"./_tslib-BJsnFhs2.mjs";import{Enum as o,CCInteger as e,Button as n,_decorator as s,Component as i}from"cc";import{InstallType as l,playable as p}from"./Playable.mjs";import"cc/env";import"./EventSystemObject.mjs";import"./EventSystem.mjs";import"./WebAudioManager.mjs";const{ccclass:r,property:a,requireComponent:c,menu:m,disallowMultiple:y}=s;let d=class extends i{constructor(){super(...arguments),this.installType=l.None,this.installIndex=0}onEnable(){this.getComponent(n).node.on(n.EventType.CLICK,this.onButtonClick,this)}onDisable(){this.getComponent(n).node.off(n.EventType.CLICK,this.onButtonClick,this)}onButtonClick(){p.install(this.installType,this.installIndex)}};t([a({type:o(l)})],d.prototype,"installType",void 0),t([a({type:e})],d.prototype,"installIndex",void 0),d=t([r("InstallAction"),c(n),y,m("UI/InstallAction")],d);export{d as InstallAction};
